package cn.edu.neusoft.food229.fragment;

import android.content.Context;
import android.content.SharedPreferences;
import android.view.View;

import androidx.fragment.app.Fragment;

public class FragmentBase_229 extends Fragment {
    protected Context context;
    private SharedPreferences sp;
    private View view=null;


    public FragmentBase_229() {
        // Required empty public constructor
    }
    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context=context;
        sp=context.getSharedPreferences("login.do",Context.MODE_PRIVATE);
    }
    protected String getUserid(){
        return sp.getString("user_id","");
    }
    protected String getUsername(){
        return sp.getString("username","");
    }
}
